package com.tongcao.cn.service.impl;

import com.tongcao.cn.base.req.IRequest;
import com.tongcao.cn.dfire.result.Result;
import com.tongcao.cn.service.IBookerClient;
import com.tongcao.cn.service.IBookerClientService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author:tongcao
 * @Date:2019/1/24 16:02
 * Description:
 */
@Service
public class BookerClientService implements IBookerClientService {


    @Resource
    private IBookerClient bookerClient;

    @Override
    public <T> Result<T> execute(IRequest<T> request) {
        return bookerClient.execute(request);
    }

    @Override
    public <T> Result<T> bizExecute(IRequest<T> request) {
        return bookerClient.bizExecute(request);
    }

}
